package com.lhoverc.controller;

import com.lhoverc.utils.MailMsg;
import jakarta.mail.MessagingException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiCheng
 * @CreateTime: 2025-04-27
 * @Description:
 * @Version: 1.0
 */
@RestController
public class ReCaptchaController {
    @Autowired
    private MailMsg mailMsg;

    @GetMapping("/getReCaptcha")
    public void sendReCaptcha(String email) throws MessagingException {
        mailMsg.sendReCaptcha(email);
    }

}
